import React from 'react';
import "./index.css";

export default class extends React.Component{
  constructor(props){
    super();
    this.state={
      color:props.color,
      id:props.id
    }
  }
  componentWillReceiveProps(props){
    this.setState({
      color:props.color,
      id:props.id
    });
  }
  render(){
    return(
<svg xmlns="http://www.w3.org/2000/svg" className="Menu_SVG" fill= {this.state.color} id={this.state.id} preserveAspectRatio="xMidYMid" width="18.031" height="15.875" viewBox="0 0 18.031 15.875">
  <path id="aircraft" d="M14.078,14.181 L7.892,11.343 L13.517,4.532 L6.200,11.343 L0.014,9.072 L18.019,-0.010 L14.078,14.181 ZM7.892,15.884 L7.892,12.478 L9.578,13.046 L7.892,15.884 Z" class="Aircraft-1"/>
</svg>
    );
  }
}